package com.intsig.fireworkact;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;

import com.github.barteksc.pdfviewer.PDFView;
import com.intsig.imageprocess.R;

import java.io.File;

public class ShowPdfActivity extends Activity {


public static String PDF_RESULT_DIR="PDF_RESULT_DIR";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);

		setContentView(R.layout.pdfwebview);
				final String pdfdir=getIntent().getStringExtra(PDF_RESULT_DIR);

		PDFView pdfView = (PDFView) findViewById(R.id.pdfView);

		pdfView.fromFile(new File(pdfdir)).swipeHorizontal(false).load();

	}

}
